package com.qen.js

import cn.hutool.script.ScriptUtil
import javax.script.CompiledScript

/**
 * 执行JS代码
 */
fun main() {
    ScriptUtil.eval("print('Script test!');")

    val script: CompiledScript = ScriptUtil.compile("print('Script test!');")
    script.eval()
}